#ifndef _RSS_ITEM_H
#define _RSS_ITEM_H

#include <string>
#include <ctime>
#include <map>

class RssItem
{
public:
    RssItem();
    virtual ~RssItem();
    
    std::string& operator[](const std::string &name);
	void set(const std::string &name, const std::string &value);
	std::string operator[](const std::string &name) const;
    std::string getValue(const std::string &name) const;
    time_t getPubDate();

private:
    std::map<std::string, std::string> m_name2value;
	time_t m_pubDate;
};

#endif

